def get_class(kls):
    """Returns a class given a fully qualified class name"""
    parts = kls.split('.')
    module = ".".join(parts[:-1])
    mod = __import__(module)
    for comp in parts[1:]:
        mod = getattr(mod, comp)
    return mod