Fix SortedListWithKey w/ incomparable values on Python 3