Remove unused import
Move some configuration out of config.py
Simplify config.py