Fix Python3 bug in config.py