Open files in "rt" and "wt" modes

Pandas GroupBy