Spline to list of points

It is my first time using Unreal Engine :). I’m using it for a simulation.

I have a spline in the landscape that I want to be able to compute points on it from external Python code. For example, what is the closest point on the spline from some point (x, y).

Is there any way to get the points on the spline and implement an approximate function for the spline in Python?
Adding Empty Actors at constant distances across the spline is also an option if it is possible.