Apply https://github.com/transifex/transifex-client/pull/46.patch
Because setdefaultencoding does not exist in Python 3
Run 2to3 (several times). Previous patch missed a few things.
Fix 2to3 oddity where input is eval'd. WTF?
Plug more holes related to tx command.

Encountered these problems running `tx push` and `tx pull`. The tests
do not seem to cover the tx command.