code: def prepare_path(path):
      
      if type(path) == list:
          return os.path.join(*path)
      return path
docs: Path join helper method
      Join paths if list passed
  
      :type path: str|unicode|list
      :rtype: str|unicode