Fix config file parsing on python3