'Write the metadata fields to filepath.'

def write(self, filepath, skip_unknown=False):

    fp = codecs.open(filepath, u'w', encoding=u'utf-8')
    try:
        self.write_file(fp, skip_unknown)
    finally:
        fp.close()
