def import_module(name):
    """
    Imports a Python module assuming that the whole *name* identifies only a
    Python module and no symbol inside a Python module.
    """

    # fromlist must not be empty so we get the bottom-level module rather than
    # the top-level module.
    return __import__(name, fromlist=[''])