thrift - python tutorial