Python Code for XlsxWriter