remove explicit 'rt' mode from open

This breaks Python3 gzip but fixes Python3 unicode.

I'm not sure how to satisfy both generally at once