BUGFIX: functools.total_ordering doesn't work with NotImplemented in v2.7