def write(self, filepath, skip_unknown=False):
fp = codecs.open(filepath, '<STR_LIT:w>', encoding='<STR_LIT:utf-8>')<EOL>try:<EOL><INDENT>self.write_file(fp, skip_unknown)<EOL><DEDENT>finally:<EOL><INDENT>fp.close()<EOL><DEDENT>
Write the metadata fields to filepath.