1371 Add python binding for protobuf