import importlib


def import_func(dot_path):
    """
    Returns a class object from dot path notation
    """
    module_path, func_name = dot_path.rsplit('.', 1)
    imported_module = importlib.import_module(module_path)
    func = getattr(imported_module, func_name)
    return func