Remove use of write_through parameter

Remove the use of write_through parameter of io.TextIOWrapper since it
is not present in Python 2.7.
Merge commit