removed explicit float casts
changed to python3 division from __future__