import json with open('config.json') as fp: config = json.load(fp)