re-added python 2.6.x compatible float-to-decimal conversion

the server is still running the site on python 2.6, even though python
—version reports 2.7.5. this requires further investigation. until
then, this is the only workaround we need.