update m2d.py and list format