Minor changes in subexec.py