Fixing Decimal type coercion in python 2.6