Generate dictionaries ready to be outputted as CSV