A small utility function that turns a list of objects into a csv table.