Update tasks/utils/config.py

Improved load_cfg