avoid bug when pyfits isn't available