code: def reloading_meta_metaclass_factory(BASE_TYPE=type):
      
      class ReloadingMetaclass2(BASE_TYPE):
          def __init__(metaself, name, bases, dct):
              super(ReloadingMetaclass2, metaself).__init__(name, bases, dct)
              #print('Making rrr for %r' % (name,))
              metaself.rrr = reload_class
      return ReloadingMetaclass2
docs: hack for pyqt