Handle UTF-8 in thrift files for python

Testing Done:
Ran new tests (red/green/go)

Reviewed at https://rbcommons.com/s/twitter/r/1459/
Sync of https://github.com/pantsbuild/pants/commit/0a092eac5f4a45edd01ec1f25704cf827e724c27