If others come across this problem in the future: you can edit the .py file, save it, restart Slicer. If you enable Developer mode (in menu: Edit / Application settings / Developer) then developer tools appear at the top of scripted modules, which allow you to open the .py of the module by a single click and reload the module without restarting Slicer.
I did it via developer mode. i asked the question when i edited and save the .py and restart the slicer, the changes i made did not take effect. It still does not in that way. But for me the developer mode solved my problem.
i even uninstall the cmf reigstration module and manually installed it with the edited py file in place still it did not work.
Any ideas why saving and restarting the program does not work ?
If changing a .py file does not have an effect then most likely you have added multiple versions of the same file to the module paths (e.g., files were already bundled with Slicer and you installed another copy manually or via extension manager). If you search for files with the exact same name on your entire computer then most likely you’ll find the duplicate.