Remove SciPy dependency