Update socode.py
Merge pull request #37 from chrisgw/master

Well here you go!