fileweightsOUT=codecs.open(fileweights,"w",encoding="utf-8",errors="replace") alignmentFWDOUT=codecs.open(alignmentFWD,"w",encoding="utf-8",errors="replace ...