Minor change in use of tempfile module