Edits to poll_consumer.py for production