Updated c++ to send protocol messages via STDOUT.
Added protocol definition (reference only).
Added Python interface code.
Interfacing between Python and C++ works.