Update tsk.py

Added exit value