- heapq to support max heap better. (you can invert the value or use heapq._heapify_max, neither is ideal.)
- Tree map.