def output(self, path):
    f = codecs.open(path, 'w', 'utf-8_sig')
    for line in self.lines:
        f.write((line + os.linesep))
    f.close()
def output(self, path):
    f = codecs.open(path, 'w', 'utf-8_sig')
    for line in self.lines:
        f.write((line + os.linesep))
    f.close()