[mod] add total_ordering for python 2.6