Fixed numpy warning caused by Python 3 true division