def __eq__(self, other):
    return (isinstance(other, self.__class__) and (other.agg_op == self.agg_op) and (other.constructor_args == self.constructor_args) and (other.init_op_args == self.init_op_args) and (other.seq_op_args == self.seq_op_args))
def __eq__(self, other):
    return (isinstance(other, self.__class__) and (other.agg_op == self.agg_op) and (other.constructor_args == self.constructor_args) and (other.init_op_args == self.init_op_args) and (other.seq_op_args == self.seq_op_args))