user_guide/flags.py: python-3.12 no longer includes distutils
This allows building the user_guide using python 3.12 which drops the deprecated distutils package.
This allows building the user_guide using python 3.12 which drops the deprecated distutils package.