Slicer upgrade from Python 3.9.10 to Python 3.12

As discussed during the weekly hangout from June 10th, we transition from Python 3.9.10 to 3.12.10 is in progress and not yet integrated into the main branch.