def filter_ranks(results):
    """
    Find just the first rank for all the results for a given tax_id.
    """
    for _, group in itertools.groupby(results, operator.itemgetter(0)):
        yield next(group)