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:

http://www.pasteall.org/pic/show.php?id=4715

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?

Thank’s

Okay, i found this:
http://www.blender.org/documentation/250PythonDoc/bpy.types.CurveMapping.html
now i need to find out how to use it…