code: def _copy_module(old):
      
      saved = sys.modules.pop(old.__name__, None)
      new = __import__(old.__name__)
      sys.modules[old.__name__] = saved
      return new
docs: Recompiles and creates new module object.