old_contents: class LazyModule:
      def __init__(self, name):
          self.__name = name
  
      def do_import(self):
          import Orange
          from importlib import import_module
          mod = import_module('Orange.' + self.__name, package='Orange')
          setattr(Orange, self.__name, mod)
          return mod
  
      def __getattr__(self, key):
          return getattr(self.do_import(), key)
  
      def __dir__(self):
          return list(self.do_import().__dict__)
  
  
new_contents: class LazyModule:
      def __init__(self, name):
          self.__name = name
  
      def _do_import(self):
          import Orange
          from importlib import import_module
          mod = import_module('Orange.' + self.__name, package='Orange')
          setattr(Orange, self.__name, mod)
          return mod
  
      def __getattr__(self, key):
          return getattr(self._do_import(), key)
  
      def __dir__(self):
          return list(self._do_import().__dict__)
  
  
subject: Hide LazyModule.do_import