Fix configparser compatibility with Python 2