code: def save_to_file(filename, content):
      
      import os.path
      path = os.path.abspath(filename)
      with open(path, "w") as text_file:
          text_file.write("{}".format(content))
docs: Save content to file. Used by node initial contact but
      can be used anywhere.
  
      :param str filename: name of file to save to
      :param str content: content to save
      :return: None
      :raises IOError: permissions issue saving, invalid directory, etc