Use 'project.get_pymodule' instead of 'pycore.resource_to_pyobject'.