def is_almost_equal(self, other): name1 = self.name.lower() name2 = other.name.lower() return fuzz.ratio(name1, name2) >= MIN_FUZZY_RATIO