PEP8 fixes in astropy.cosmology
PEP8 fixes in astropy.nddata
PEP8 fixes in astropy.constants
PEP8 fixes in astropy.tests
Merge pull request #1674 from astrofrog/misc-pep8-fixes

PEP8 fixes