example for http://www.rabbitmq.com/tutorials/tutorial-two-python.html