def __eq__(self, other): return tuple_equal(expand(self.fs), expand(other.fs))
def __eq__(self, other): return self[0] == other[0] and \ tuple_equal(expand(self.fs), expand(other.fs))
def __eq__(self, other): return self[0] == other[0] and tuple_equal(expand(self.shifts), expand(other.shifts))