Added float conversions for python2.x