def import_class(clspath):
    """Given a clspath, returns the class.

    Note: This is a really simplistic implementation.

    """
    modpath, clsname = split_clspath(clspath)
    __import__(modpath)
    module = sys.modules[modpath]
    return getattr(module, clsname)
Given a clspath, returns the class.

    Note: This is a really simplistic implementation.