an example of google ptotobuf for reading and writing with python.