fix python3 support for configparser