The __init__ method initializes the ConfigParser base class and sets the config_file attribute. If no config file is provided, it defaults to 'config.ini'.
The load_config method checks if the config file exists. If it does, it reads the config file. If not, it creates a new 'general' section with some default values.
The get_bool, get_int, and get_float methods provide a convenient way to retrieve configuration values with default values in case the option is not found or the value is not of the expected type.
The save_config method writes the current configuration to the config file.
You can use this Config class in your application like this: