def _open(self, path): mkdir_p(os.path.dirname(path)) return open(path, 'w')
def end(self): mkdir_p(os.path.dirname(self.outPath)) with open(self.outPath, 'w') as f: f.write(list_to_aligned_text(self.rows))