Updated method for creating fits table headers to use the new astropy function