Don't use reduce in checkodesol()

It isn't avaiable in Python 3