refactored so that submit_done can be used by other python programs more easily
refactored so that submit_done can be used by other python programs more easily

djt5019/idonethis,samstav/idonethis,jgstew/idonethis