def write_a_row(r, outfile, columns):
    with open(outfile, mode='a', encoding='utf-8') as f:
        scribe = csv.DictWriter(f, fieldnames=columns, delimiter='\t')
        scribe.writerow(r)
def write_a_row(r, outfile, columns):
    with open(outfile, mode='a', encoding='utf-8') as f:
        scribe = csv.DictWriter(f, fieldnames=columns, delimiter='\t')
        scribe.writerow(r)