def load(filename): with open(filename, 'r') as f: data = yaml.load(f, Loader) # pp = pprint.PrettyPrinter(indent=4) # pp.pprint(data) return data