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