dsa-check-statusfile: change shebang from ruby to python and fix syntax errors.