Changed configparser to work in both python2 and python3