This looks like a job for subprocess.check_call.  ;-)