code: def tab(self, output):
          
          import csv
          csvwriter = csv.writer(self.outfile, dialect=csv.excel_tab)
          csvwriter.writerows(output)
docs: Output data in excel-compatible tab-delimited format