generator seems a bit specific to ```parse_fasta```. This could really be any iterable I think.