init. trying to be compatible with 3.x (incompatible with 2.x). 1. 2to3. 2. replace StringIO to BytesIO. 3. name -> byte_name in TBinaryProtocol.writeMessageBegin