def METHOD_NAME(module_name, class_name):
    if module_name == 'parsers':
        module_path = join(settings.VAR_DIR, 'conf/parsers.py')
        spec = importlib.util.spec_from_file_location(module_name, module_path)
        module = importlib.util.module_from_spec(spec)
        spec.loader.exec_module(module)
    else:
        module = importlib.import_module(module_name)
    return getattr(module, class_name)