Add python script to doc/protocol.txt