@property
def more_magic(self):
    importing_frame = self.inspect.getouterframes(self.inspect.currentframe())[
        1][0]
module = importing_frame.f_globals['__name__']
print('more magic imported in %s' % module)
sys.modules[__name__] = FutureMagic()
Using __future__ style imports for module specific features in Python