xlw library can't export xlsx formated report. But exported xlsx formated report.
Then formed this issue
Excel cannot be open the 'filename.xlsx' because the file format or file extension os not valid . Verify that the file has not been corrupted and that the file extension matches the format of the file.