def load_object(imp_path):
    '''
    Given a python import path, load the object
    For dynamic imports in a program

    >>> isdir = load_object('os.path.isdir')
    >>> isdir('/tmp')
    True

    >>> num = load_object('numbers.Number')
    >>> isinstance('x', num)
    False
    >>> isinstance(777, num)
    True
    '''
    module_name, obj_name = imp_path.split('.', 1)
    module = __import__(module_name)
    obj = attrgetter(obj_name)(module)

    return obj
Given a python import path, load the object
    For dynamic imports in a program

    >>> isdir = load_object('os.path.isdir')
    >>> isdir('/tmp')
    True

    >>> num = load_object('numbers.Number')
    >>> isinstance('x', num)
    False
    >>> isinstance(777, num)
    True