Update simpleserver.py

add protobuf logic, untested!