compatible with py ver
php client of thrift