os.tmpdir()

os.tmpdir() - Returns the operating system’s
default directory for temporary files as a string.