fix python 2.6 error

TypeError: Cannot convert float to Decimal.  First convert the float to a string