Changed pyfits to astropy.io.fits. For ticket #133.