Making the Decimal comparison work for python 2.6