For temporary files use the python `tempfile` library.