def module_import(app_path):
    """
    Imports a module in a given path.

    :param str app_path:
        A string that contains the path of the module and it's name.
    :returns: A reference to the module in the given path.
    """
    module = __import__(app_path)
    for part in app_path.split('.')[1:]:
        module = getattr(module, part)
    return module