Add points to a key curve from a vertex ipo ?

Hi !

I would like to write a script which add points to a Key Curve from a Vertex IPO but all I can find are fonctions which are not available anymore with the recent version.

Thanks for helping.