def _pluck_classes(modules, classnames):
    klasses = []
    for classname in classnames:
        klass = None
        for module in modules:
            if hasattr(module, classname):
                klass = getattr(module, classname)
                break
        if not klass:
            packages = [m.__name__ for m in modules if m is not None]
            raise ClassNotFoundError("No class '%s' found in %s" % (
                classname, ", ".join(packages)))
        klasses.append(klass)
    return klasses
Use the Python import function to get a Python package module by name.
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/core/loading.py/_pluck_classes--crossover with--dataset/ETHPy150Open kdart/pycopia/aid/pycopia/module.py/get_module