from. http://www.rabbitmq.com/tutorials/tutorial-three-python.html