def read_header(path): path = Path(path) data = yload(path.text(encoding='utf8')) return data['header']