I have terrible doubts regarding python config file approach.
I am creating a program with a GUI (PyQt). The program loads some settings from a .cfg file using the configparser module. And the user can edit these settings from the GUI with the user preferences widget. When the preferences widget is closed the .cfg file is saved but I don't know how to update the  rest of the program using the updated settings values.
I will try to explain with an example:

I launch the program. It create a ConfigParser() named config and read settings.cfg.
The program retrieve the value of the option 'clock_speed' (let's say it is 5) from config and set clkSpd = 5.
I click on Edit -> Preferences and change the clock speed via a QSpinBox to 8.
I close the Preferences windget, settings.cfg is saved, the value of the option 'clock_speed' is now 8.
BUT in its module, clkSpd is still 5.

I know I can just load the settings, edit them, save them and reload all settings each time I close the Preferences window. It's simple but not very beautiful.
Is there a classic and effficiant approach for config files in read/write mode ?
Thanks by advance.
Updating the state of your application may not be a trivial thing if you are somewhere in the middle. Just an example:

Your app = A car
You launch your app = You start your car
You set in the preferences the variable type_tyre to Winter
Your running app still has type_tyre equals Sommer
You attempt to change tyres while driving on the highway
Crash

And this while changing the tyres before starting the car might be a trivial and safe thing to do.
So you just have to write a routine that adjusts the state of your application according to the change in preferences but this is in general different from initializing the app and depends on the current state of the app. But otherwise just write such a routine and call it.
Python - update configparser between modules