code: def write_ufo(ufo, out_dir):
      
  
      out_path = build_ufo_path(out_dir, ufo.info.familyName, ufo.info.styleName)
  
      logger.info("Writing %s" % out_path)
      clean_ufo(out_path)
      ufo.save(out_path)
docs: Write a UFO.