mn_ctl.py: copyright and code cleanup