title: Does python have a built in min-heap data structure?
body: <p>Does python have a built in min-heap data structure in 2.7.3?</p>
  
  <p>I don't want to import code.</p>
  
  <p>I want something like</p>
  
  <pre><code>myheap = minheap(key=lambda x: x[1])
  myheap.add(obj)
  o = myheap.pop()
  </code></pre>
  
  <p>Is this possible?</p>