Don't use the tempfile.TemporaryDir ctx mgr

Not available on older Pythons