download_job_artifacts: fix temp file creation
mkstemp() returns a tuple containing an OS-level handle to an open file (as would be returned by os.open()) and the absolute pathname of that file, in that order.
Use higher-level function NamedTemporaryFile() instead.