moved python_import to the Scope constructor