using python json lib for create config file