title: how to 'index' a named tuple
body: <p>I have a namedtuple, that contains several namedtuples within it. </p>
  
  <p>Each of the inner tuples essentially has a unique 'id', along with other useful information. 
  I know the ID of the tuple I want to access, and Im wondering if there's an easy way to 'index' the namedtuple to extract the exact element I want without doing something like:</p>
  
  <pre><code>for inner_tuple in outer_tuple:
      if inner_tuple.id == desired_id:
          found tuple = inner_tuple
          break
  </code></pre>