Using Heapq Python Documentation