decimal.Decimal("%s" % value) raises an uncaught InvalidOperation exception