def writeBox(self): path = _util.pathCreated fontName = self.formatter.fontName timeStamp = _util.getTimestamp() boxFilePath = path + '/' + fontName + '.' with open(boxFilePath, 'w') as f: for s in output: f.write(s + '\n')