Update socode.py

indentation fix, function called in main stmt