in testing
wire protocol js to py. dealing in bytes