http://docs.python.org/2/tutorial/datastructures.html#using-lists-as-queues