call the method self._new_instance with 3 arguments: self.children, self.connector and self.negated, substitute the result for obj.
obj = self . _new_instance ( self . children , self . connector , self . negated )