def __str__(self):
        l, r = self.left, self.right
        if isinstance(l, BinaryOp):
            l = str(l) % '(%s)'
        if isinstance(r, BinaryOp):
            r = '(%s)' % str(r)

        return "%s %s %s" % (l, self.symbol, r)
dataset/ETHPy150Open ChrisBeaumont/soupy/soupy.py/BinaryOp.__str__/swapped operands of `%`