curve Edit points

Hi ,

I am trying to recreate the rhino command _EditPtOn within grasshopper using the

Python scripting compound.

At the moment it looks simply like following: a = rs.CurveEditPoints(y)   // a = point , y = curve

Its works fine working with open curves . Howerver working

with periodic curves the output is very wrong (additional points far off the curves )

while the rhino command seems works fine with periodic curves .

I s there anything i can do about that ?

thanks

Christoph