Returns an object by <path>, importing modules if necessary

def get_by_path(path, _globals=None):
    """ Returns an object by <path>, importing modules if necessary """
    if _globals is None:
        _globals = list()
    return _get_by_path(path.split('.'), _globals)