fix error with Decimal in older python versions

From the python docs:

Changed in version 2.7: The argument to the constructor is now permitted to be a float instance.