def load_py(stream, filepath=None):
with add_sys_paths(config.package_definition_build_python_paths):<EOL><INDENT>return _load_py(stream, filepath=filepath)<EOL><DEDENT>
Load python-formatted data from a stream.

    Args:
        stream (file-like object).

    Returns:
        dict.