Refactor pb defs. Fix makefile to generate arduino compat code. add python client