fixes relating to pyzmq changes

The pyzmq library has changed since this was written. Here are some updates to get the kernel and frontend working again.

Tested with pyzmq version 13.1.0.