make configparser conditional on python version