AthenaCommon: Fix flag comparison for python 3.
With python 3, we need to use bool instead of nonzero. cmp also doesn't work. Instead, we provide lt and generate the remainder using functools.total_ordering.
With python 3, we need to use bool instead of nonzero. cmp also doesn't work. Instead, we provide lt and generate the remainder using functools.total_ordering.