Adjusting cmsp.py and sen.py