The python thrift client expects bytestrings instead of unicode. However, if you accidentally supply unicode instead of bytestrings it messes the arguments for the next thrift call on that client object, even if all the arguments are ASCII / bytestrings.
For example, I have some python thrift client code that looks like this:
What I expect to see on the server side is this:
But what I see is this:
I'm using the Thrift compiler version 0.9.2 and python thrift library version 0.9.1.