def __load_sequence_iter(self, seq=None, iter_seq=None):
    mod_open = 0
    block = ''
    mod = False
    if (not iter_seq):
        iter_seq = iter(seq)
    for i in iter_seq:
        if (type(i) == str):
            if (i in mod_enclosure_start):
                mod = True
                mod_open += 1
            elif (i in mod_enclosure_end):
                mod_open -= 1
            block += i
        elif (type(i) == AminoAcid):
            block = i
        else:
            (yield from self.__load_sequence_iter(iter_seq=iter_seq))
        if (mod_open == 0):
            (yield (block, mod))
            mod = False
            block = ''
def __load_sequence_iter(self, seq=None, iter_seq=None):
    mod_open = 0
    block = 
    mod = False
    if (not iter_seq):
        iter_seq = iter(seq)
    for i in iter_seq:
        if (type(i) == str):
            if (i in mod_enclosure_start):
                mod = True
                mod_open += 1
            elif (i in mod_enclosure_end):
                mod_open -= 1
            block += i
        elif (type(i) == AminoAcid):
            block = i
        else:
            (yield from self.__load_sequence_iter(iter_seq=iter_seq))
        if (mod_open == 0):
            (yield (block, mod))
            mod = False
            block = 