code: def writefile(filename, content):
      
      with open(path_expand(filename), 'w') as outfile:
          outfile.write(content)
docs: writes the content into the file
      :param filename: the filename
      :param content: teh content
      :return: