The xlwt
module cannot create .xlsx
files. It is a writer for .xls
files.
The warning is due to a feature in newer versions of Excel called "extension hardening" which means that the file extension has to match the file type.
If you change the output file extension in your program to .xls
the warning should go away and Excel will read the file.