Python code to produce reports in excel for wrok