Python 2 compatibility for ConfigParser