import json config = None with open("config.json", "r") as fp: print("loading config") config = json.load(fp)