code: def save(filename, html):
      
      try:
          out_file = open(filename, "w")
          out_file.write(html)
          out_file.close()
      except IOError as ex:
          parser.error("Could not write baked HTML to local file {name}. ({ex})".format(name=filename, ex=ex))
docs: Creates a baked HTML file on the local system