Cubic Spline Interpolation Python Code