def load_spec_dict(spec_path): with open(spec_path, 'r') as spec_file: return YAML().load(spec_file.read())