This could be [configparser](https://docs.python.org/3/library/configparser.html) and appropriate [QSettings](https://doc.qt.io/qt-5/qsettings.html) for the GUI.
This could be configparser and appropriate QSettings for the GUI.