G.U.I. 'Curve tool' in a script? Can this be done?

Hi, at this moment i’m porting my A.N.T. Landscape script to 2.5x
if possible i want to use a ‘Curve tool’ in my script to filter the terrain shape:


Can this be done? If the answer is yes, where can i find it in the API,
and how to implement this thing in my script?
Any examples?


Okay, i found this:
now i need to find out how to use it…