Change numeric values to float (python2)

Python2 doesn't support automatic conversion from int to float in a
division.