changed deprecated pyfits to astropy.io.fits (as astrofits)