Update colors in timeline effect/gradient via LUA Script

In a custom preset is there a way to fire another lua command that updates a color in a gradient?   

Related