refactor protocol buffers, start python tools