operator.div does not work in python3. use truediv instead?