Update socode.py

Added auto-update function. Quick and dirty!