Fix zmq hook to handle latest pyzmq version 14.0+