How to reload host module during development?

I’m trying to develop a host module, but I keep getting an error that I raised in a previous iteration of the module (the error is no longer in any of my code). “Restart” and “Firmware Restart” buttons in Mainsail restart the system, but it comes back up with the same error. I tried deleting klippy/extras/mymodule.pyc, but it didn’t change anything.

You need to restart the Klipper service, i.e. sudo service klipper restart

That did it. Thank you!