code beautify of msc_validate.py