Getting error TypeError: unsupported operand type(s) for /: 'BinOp' and 'BinOp'

sy = (ax.bbox.ur().y() - ax.bbox.ll().y()) / (ax.viewLim.ur().y() -
ax.viewLim.ll().y())

I solved the problem by using .get() on the BinOp's and then converting it back to a BinOP using Value()

Vineet