def namedObject(name):
    """
    Get a fully named module-global object.
    """
    classSplit = name.split('.')
    module = namedModule('.'.join(classSplit[:-1]))
    return getattr(module, classSplit[-1])

    Get a fully named module-global object.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/reflect.py