def path_to_class(path):
    """Given a class path, returns the class"""
    module_path, cls_name = path.split(':')
    module = __import__(module_path, fromlist=[cls_name])
    cls = getattr(module, cls_name)
    return cls