I have the a set of points and I pass a curve through them, using scipy CubeSpline, I really would like to know how can I add padding from outside, so that the curve is fitting the flow of the points but they are always inside it by some factor, as shown in this image, where what I have is the blue line and what I need to get is the red curve 
def visualize_trajectory(points):
points = np.array(points)
distance = np.cumsum(np.sqrt(np.sum(np.diff(points, axis=0)**2, axis=1)))
distance = np.insert(distance, 0, 0)/distance[-1]
interpolations_methods = ['cubic']
alpha = np.linspace(0, 1, 25)
interpolator = CubicSpline(distance, points, axis=0)
interpolated_points = {}
for method in interpolations_methods:
interpolator = CubicSpline(distance, points, axis=0)
interpolated_points[method] = interpolator(alpha)
plt.figure(figsize=(7, 7))
plt.gca().invert_yaxis()
for method_name, curve in interpolated_points.items():
plt.plot(*curve.T, '-', label=method_name)
plt.plot(*points.T, 'ok', label='original points')
plt.axis('equal')
plt.legend()
plt.xlabel('x')
plt.ylabel('y')
# plt.show(block=False)
plt.show()
plt.close()