import imp


def load_module(module_name):
    """
    Dynamically imports the specified module and returns it.

    :param str module_name:
        Name of the module to be imported as a string. 
    """
    module_file = None
    try:
        module_file, pathname, description = imp.find_module(module_name)
        module = imp.load_module(module_name, module_file, pathname, description)
        return module
    finally:
        if module_file:
            module_file.close()