Benp/total event report

I think that if you use "for line in input_file:" above, you won't have any trailing newlines.  Then you don't have to worry that some of your event_count elements have one and others don't.  It just means that you have to explicitly add the newline after writing the csv_entry, just as you did above for writing out the header.