Update socode.py

alpertayfun added by self function.