Animate curves by changing spline data using a python script
Apparently the answer is simple to this, I had to choose splines[0]

curve = bpy.data.objects["Curve"]
points = cable.data.splines[0].points
# for i ...
    # get new data
    points.foreach_set("co", data)
    for point in points:
        point.keyframe_insert(data_path="co", frame = i)