Fix test failures.
Note removal of implicit conversion in Python3.x