replace scipy.linalg.svd with numpy.linalg.svd