Sort Priority Queue Python Example