code: def simulate_one(fw, name, size):
      
      from random import choice
      seq = Seq(''.join(choice('ACGT') for _ in xrange(size)))
      s = SeqRecord(seq, id=name, description="Fake sequence")
      SeqIO.write([s], fw, "fasta")
docs: Simulate a random sequence with name and size