Updated the code to generate an error if PyZMQ is not installed.