I tried the solution with str but it didn't work (for the values).
str
But
parser = configparser.ConfigParser() parser.optionxform = lambda option: option
Worked well