Troubleshooting zmq and flask interactions