T160 pythonioencoding new

Redoing pull request #203