Update socode.py

Added personal function...