This usage of mkdtemp creates the temporary directory inside of the working directory, since I passed `dir=os.getcwd()`.  Without passing the `dir`, it would go in /tmp, which I agree would be bad news.