Or just write text.
g=open("outfile.fasta",'w') for x in data: g.write(f">{x.description}\n{x.seq}\n")