protocol buffer implemented in cython