Converting float inside range function to int for Py 3 compatibility.