Closed hdulist, played with faster way to write data out, stuck with ascii.write for now.