Personal preference, but maybe pop a `from __future__ import division` up top and drop the `float()` call.