Using astropy.io.ascii to write output instead of standard write.