title: Get specific object from a list with a certain parameter
body: <p>I have a list of Account objects in <code>self.accounts</code>, and I know that only one of them will have a <code>type</code> attribute equal to 'equity'.  What is the best (most pythonic) way to get only that object from the list?</p>
  
  <p>Currently I have the following, but I'm wondering if the <code>[0]</code> at the end is superfluous.  Is there a more succinct way to do this?</p>
  
  <p><code>return [account for account in self.accounts if account.type == 'equity'][0]</code></p>