split rpc stub generator for python and cpp