As an alternative to from __future__ import division, one can use the normal division symbol / but making make sure that at least one of the operands is a float by any of:
adding decimal point 2.
adding decimal point and zero 2.0
casting using the float function float(2)
multiplying by 1 as float 2 * 1.