Resolve ftbfs with python 3.12
This MR fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055730
Changes:
- replace SafeConfigParser with ConfigParser due to SafeConfigParser removal in Python 3.12
Testing:
- built in sid chroot (Python 3.11)
- built in noble chroot (Python 3.12)