def toDisc(self, path): path = path + os.sep + self.id + ".txt" outtxt = self.toString2() IO.todisc_txt(outtxt, path)