Trouble doing parameter reset

I am following these instructions:
Option #2: Change the SYSID_SW_MREV parameter
On any Ground Control Station (that can write parameters) you can reset parameters by setting the SYSID_SW_MREV parameter to zero. After writing the parameter, reboot the board.

But when I run the code inside of a Dronkit python script, I receive this message:
timeout setting parameter SYSID_SW_MREV to 0.00000

How can I reset parameters inside of a Dronekit python script??