Add total_ordering for py2.6