Thin-plane spline in python