Use the netcdf4 package (http://unidata.github.io/netcdf4-python/) to parse the file and the builtin csv module to write the output as CSV. To obtain a XSLX, you can also use openpyxl (https://openpyxl.readthedocs.io/en/stable/), but using csv is probably easier.