simple pure python parser for apache thrift