write dictionary of lists to a csv file,writer.writerows(zip(*[d[key] for key in keys]))