code: def write(self, filepath, skip_unknown=False):
          
          fp = codecs.open(filepath, 'w', encoding='utf-8')
          try:
              self.write_file(fp, skip_unknown)
          finally:
              fp.close()
docs: Write the metadata fields to filepath.