import json # load library data from json file def load_lib_data(lib_path): with open (lib_path, 'r') as config_file: data = json.load(config_file) return data