Pure python zmq protocol implementation