Update socode.py
Merge pull request #162 from rightfold/master

Update socode.py