Fix unnecerary dependence to numpy