Hi Ivelin,
Thank you for your kind help!
The python code is from this topic and thank Gijs for his work:
I attached the GH file curveselection.gh (14.0 KB) I make according to Gijs and the rhino file curveselection.3dm (304.3 KB) containing the curves. Thanks again!