PEP8 fixes in astropy/table and astropy/nddata

This PR implements a number of PEP8 fixes in the astropy/table and astropy/nddata sub-packages, since there are not many other PRs that deal with these so far. This goes towards fixing #1133.