Using Heapq In Python Example