The shell script can't access the config.json data easily, convert from shell to python so that we prepare the way for further enhancements. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>