Fixed py2.6 issue with float to decimal conversion