Make use of the tempfile module