Refactored/cleaned config.py