fixed test_submission and minor fixes to delivery_sched.py