The Python programming language
existing directory caused mkstemp and related APIs to fail instead of retrying. Report and fix by Vlad Shcherbina.