Make comparison operators test pass on Python 2

See issue #1.