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

(cherry picked from commit f9de97aae5fe9dafb58a8099171f4a09c449f4e8)

Co-authored-by: Zachary Ware <zach@python.org>
2 files changed