import importlib


def getclass(modulename, classname):
    """
    fetches a class given the (text) name of the module and class)
    """
    return getattr(importlib.import_module(modulename), classname)