title: Using bisect in a list of tuples?
body: <p>I'm trying to figure out how to use bisect in a list of tuples
  for example</p>
  
  <pre><code>[(3, 1), (2, 2), (5, 6)]
  </code></pre>
  
  <p>How can I bisect this list according to the [1] in each tuple?</p>
  
  <pre><code>list_dict [(69, 8), (70, 8), ((65, 67), 6)]
  tup1,tup2 (69, 8) (70, 8)
  list_dict [((65, 67), 6)]
  fst, snd ((65, 67),) (6,)
  </code></pre>
  
  <p>And I'm inserting to bisect </p>
  
  <pre><code>idx = bisect.bisect(fst, tup1[1]+tup2[1])
  </code></pre>
  
  <p>Which gives me <code>unorderable types: int() &lt; tuple()</code></p>