refactored excel.py for testin