Priority Queue Python Example Code