At line 173 and 175 of file pyclaw/fileio/netcdf.py, the use of exec to add new local variables doesn't seem to work in Python 3 (I'm using 3.7.1)
Python 2.7.15, however, does not have problems on these two execs (though Python 2.7.15 will encounter some other problems in the remaining code in netcdf.py).
This may have something to do with that, exec is a statement in Python 2 but is a function in Python 3. See the discussion here.