How about just adding ```from __future__ import division``` as a declaration at the top of this module?