Change pickle message length to uint32

Receiver Python code uses struct format '!I', a 4-byte quantity, to decode
the length.