Changing to make it compatible with the new pyfits API, which removed some of the methods in the Header class