python code for netcdf