Update smo.py

I corrected some minor errors