Bump python and some dependencies (#21067)
Summary of the issue:
We need to bump some dependencies for security reasons.
Some other minor dependencies are bumped too, as it was easier than confirming that each dependency upgrade wasn't to do with security issues.
Some more risky dependency upgrades were avoided due to no vulnerabilities being reported in the changelogs.
The lint group deps were also avoided.
Description of user facing changes:
N/A
Description of developer facing changes:
update deps
Description of development approach:
uvx --from python-update-checker puc --exclude-newer "1 day" update pyproject.toml
uvx --from python-update-checker puc --exclude-newer "1 day" update runtime-builders/synthDriverHost32/pyproject.toml
Run through the automatic upgrades, and undo riskier upgrades such as wxpython. Note that no changes to synthDriverHost32 seemed necessary.
Bumped python to 3.13.17 as well due to security patches. Unfortunately there are no windows binaries for python 3.13.18.
Added an AI generated hook to fix winrt not bundling correctly with py2exe.