Fix python3 division issue