import importlib


def import_class_from_string(class_string):
    """
    Import (and return) a class from its name

    Arguments keywords:
    class_string -- name of class to import
    """
    module_name, class_name = class_string.rsplit('.', 1)
    module = importlib.import_module(module_name)
    return getattr(module, class_name)