Fix python3 divide ufunc issues