modified match.py to guarantee allergen similarity