__cmp__ goes away in python 3.