`__cmp__` has been removed in python 3