code: def load_script(filename):
      
      path, module_name, ext = _extract_script_components(filename)
      add_search_path(path)
      return _load_module(module_name)
docs: Loads a python script as a module.
  
      This function is provided to allow applications to load a Python module by its file name.
  
      :param string filename:
          Name of the python file to be loaded as a module.
  
      :return:
          A |Python|_ module loaded from the specified file.