Update socode.py

Adding function call