Update socode.py

Added My contribution