hack for pyqt

def reloading_meta_metaclass_factory(BASE_TYPE=type):
    """ hack for pyqt """
    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