fix(firedragon): Fix various issues with Python 3.12
Fixes various issues with Python 3.12, especially the PGO build failing during profiling with Python 3.12 due to removed distutils.
Fixes various issues with Python 3.12, especially the PGO build failing during profiling with Python 3.12 due to removed distutils.