Correct block_crc usage.
Change types to be compatible with msgpack python.
Add check for end of datagram.