How to automate Excel report generation with Python?