from SubPackage import TestWithGlobals
print(TestWithGlobals.__name__)
import sys

def MakeStringBall():
    print('In MakeStringBall', id(TestWithGlobals))
print('In MakeStringBall Subpackage.TestWithGlobals', id(sys.modules[
    'SubPackage.TestWithGlobals']))
print('In MakeStringBall OuterPackage.SubPackage.TestWithGlobals', id(sys.
    modules['OuterPackage.SubPackage.TestWithGlobals']))
TestWithGlobals.global_string = 'ball'
Import from subpackage or full path difference