revise consumer.py for Python 3.3.x

Hi Necaris,
I revised the consumer.py and port to Python 3.x successfully on Mac OS.