bugfix in tools/config.py