title: Python: Using heap commands on a list of tuples
body: <p>I'm trying to understand some of Python's built in heap functionality. It seems to not like things when I pass in a list of tuples (or more likely, I'm not passing the list in correctly). Here is what I have:</p>
  
  <pre><code>myList = ( ('a', 1), ('b', 2) )
  heapify(myList)
  </code></pre>
  
  <p>The error that I get is </p>
  
  <blockquote>
    <p>TypeError: heap argument must be a list</p>
  </blockquote>
  
  <p>Am I doing something wrong? Is there another way to pass in a list of tuples?</p>
  
  <p>Thanks!</p>