I'm not sure what I'm trying to do is even possible:
Basically I got a config.py file, it contains some variables, let's say var1 is one of them.
I want that by doing config.var1 = 'some value' what will actually happen is config.some_method('some value')
Is that possible?
configis not a module but an object of a class you define. You could even name bothconfig, and import it withfrom config import configto keep the rest of your code the same.