Moved config code to argsconfig.py