Move Config class to tools.py