title: how to get the max heap in python
body: <p>I use heapq module in python, I find I only can the min heap, even if I use reverse=True </p>
  
  <p>I still get the min top heap</p>
  
  <pre><code>from heapq import *
  
  h=[]
  merge(h,key=lambda e:e[0],reverse=True)
  heappush(h, (200, 1))
  heappush(h, (300,2))
  heappush(h, (400,3))
  print(heappop(h))
  </code></pre>
  
  <p>I still get the result:</p>
  
  <pre><code>(200, 1)
  </code></pre>
  
  <p>I want to get result:</p>
  
  <pre><code>(400,3)
  </code></pre>
  
  <p>how to do it?</p>
  
  <p>which is the smallest element. I want pop the largest emelment?</p>
  
  <p>ps: this is part of question find the max and then divide into several elements and then put it back to the heap.</p>