I am trying to compare one list to many lists and generate a csv file with values aligned. itertools.zip_longest does a good job but because f the need to align the output,