add all.py and sm.py