heapq.heappop()

heapq.heappop()

Pop the smallest item off the heap, maintaining the heap invariant.