def METHOD_NAME(self, fullname):
    # Loader method (deprecated but simple)
    m = mapping[fullname]
    if isinstance(m, str):
        import importlib
        m = importlib.import_module(m)
    sys.modules[fullname] = m
    return m