Removed transactional code from read, added the message type header to the send and converted the recieve to use the python logging instead of print statements