Use tempfile.mkdtemp to create a temporary directory and create all the files
there.