code: def hits(self):
          
          self.quality_sort()
  
          hits = dict((query, list(blines)) for (query, blines) in \
                          groupby(self, lambda x: x.query))
  
          self.ref_sort()
  
          return hits
docs: returns a dict with query => blastline