lang/python310: Update to 3.10.12
(cherry picked from commit 8a05f69b430da2b1ee78c6df4c767f45399d7902)