[Python-checkins] bpo-45616: Let py.exe distinguish between v3.1 and v3.10 (GH-29731)