ENH: use classes in excel.py