Fixed PEP8 issues in netcdf.py

This PR fixes a few PEP8 issues that slipped into netcdf.py recently and removes it from the PEP8 exclusion list.