tbl.write('test.txt', format='ascii.ipac')
with open('test.txt', 'r') as fh:
    output = []
for ii, line in enumerate(fh):
    pass
How do I save the header and units of an astropy Table into an ascii file