Fixed csv writer for newline, but there's a bug with traversing inconsistent dictionaries for each team