def get_module(addr):
    """
    Return a instance of a module by using only its name.
    
    Args:
        addr (str): The name of the module which should be in the format
          ``MODULENAME[.SUBMODULE1[.SUBMODULE2[...]]]``

    """
    parts = addr.split('.')
    module = ".".join(parts)
    m = __import__( module )
    for comp in parts[1:]:
        m = getattr(m, comp)
    return m