How to change start and end of the curve(open)

This image is good to say that you use Rhino 5! Not a lot more. You don’t need to share all your script extract what is problematic and internalize data (just some curves).
See here some advices