Employing template concept in XlsxWriter