reverting to the good version of submit_jobs.py