Python Parametric Spline Fit