Python 3.14 now has a public and complete max-heap API in the heapq module, see the documentation for more information.