Changes made by python commandlet doesn't get saved to disk

I am trying to use python to change the position keys of the camera inside sequencer and render movie with it.

I was able to get and set the value of Camera’s keys with the in-editor python.
But then when I tried to run the same script under commandline mode, the log prints correct values yet the old value shows up when I reopen the file in the editor. ​​​​​​
I tried using save_asset(sequencer) but the changes just never show up.

How shall I save the adjusted value to disk?