That's what I thought, but tempfile unlinks the file once it's closed. http://docs.python.org/2/library/tempfile.html