shouldn't `from future_import division remove the need for all of this casting to float?