python: bump runtime and tested versions to 3.12
Now that we are running from buildservice managed containers we can catch up to the most recent upstream supported Python version. Per https://devcenter.heroku.com/articles/python-support#supported-runtimes that is currently 3.12.2.