def from_class_path(cls_path):
    """Returns the class

    Takes a class path and returns the class for it.

    :returns: varies

    >>> from_class_path('fjord.search.models:Record')
    <Record ...>

    """
    module_path, cls_name = cls_path.split(':')
    module = __import__(module_path, fromlist=[cls_name])
    return getattr(module, cls_name)