SafeConfigparser and readfp() have been deprecated in 3.12 python version. should be updated to use Configparser and read_file()