Using Heapq Python Documentation Library