event-handling with PyZMQ