Code now adds the header row to the list of dicts.

This allows the resulting csv to be written using a single call to
csv.DictWriter.writerows. Prior behavior was to use a call to
csv.DictWriter.writerow to write the header.