Refactor mikiwindow.py: split __init__ into setup routines.