So if I understand this correctly the relevant change here is to comment out pwm disarmed?

Note that you could as well just completely remove all PWM lines, since this is a Mikrokopter script and there is no need to make those calls at all in that case.