'Return the quality of the given offer.  Returns None if there
is no match (not 0).'

def quality(self, offer, modifier=1):

    bestq = 0
    for (mask, q) in self._parsed:
        if self._match(mask, offer):
            bestq = max(bestq, (q * modifier))
    return (bestq or None)
