def import_by_name(name):
    """Imports a python module by its
    qualified name.
    """
    module = __import__(name)
    for n in name.split(".")[1:]:
        module = getattr(module, n)
    return module