CLN: refactor excel.py