PEP8 fixes in astropy.cosmology