update mos1 scripts to python3
update mos2 scripts to python3