Change index.py to use CONFIG dict instead of parameters in constructor