[Python-Dev] Update for os.path.expandvars bug 49589