monpanel.py fixes, state2state() works