use the norm from scipy. It's a good practice to avoid np.linalg. Ask me why if you don't know.