According to the docs here, you can access the records by just iterating over the returned iterator:
from Bio import SeqIO for record in SeqIO.parse("example.fasta", "fasta"): print(record.id)