Send pwm values to RC_Channels 9 & 10

Hi,
how can i send PWM values to RC channels 9 and 10?

Hello @sudheeshk,

If you are not using them for the camera/lights, you can set the SERVO9_Function and SERVO10_Function parameters to RCIN9 and RCIN10, and use the RC_CHANNELS_OVERRIDE MAVLink message.

I am trying to do the same thing with pymavlink to turn on or off the lights connected to pin 9 and 10 on the navigator, however I have not been successful. Can you assist?