migration: T6007: update load_config.py
(cherry picked from commit 403f1d2f2159f5436bb7c71a3694647a870357b7)