code: def __import_file(self, f):
          
          directory, module_name = os.path.split(f)
          module_name = os.path.splitext(module_name)[0]
  
          path = list(sys.path)
          sys.path.insert(0, directory)
          module = __import__(module_name)
          return module
docs: Import the specified file and return the imported module
  
          :param f: the file to import
          :type f: str
          :returns: The imported module
          :rtype: module
          :raises: None