Graph editor and curve

hi everyone,
I want to make a script that add a fcurve modifier in the graph editor, and I need to set the fcurve to active with the script and I don’t know how.
There’s no set_active, curve.active or something like that???