I have created a .ini-like file with all the values which I need later in my program, see below:
[debugging]
checkForAbort = 10
...
[official]
checkForAbort
The Answer by pillmuncher is very helpful and can be easily adapted to use within an existing class. Furthermore, it is also possible to automatically convert the data types using the localconfig module (link). To get these additional functionalities you can use something like:
from localconfig import LocalConfig
configfile = 'config.ini'
config = LocalConfig(configfile)
sections = list(config)
for section in sections:
items = list(config.items(section))
CLASS.__dict__.update(items)