Sort Priority Queue Python Example Code