Fixed python thrift generation.