functools.total_ordering backport for Python 2.6