def find_all(a_str, sub):
    """
    String finder iterator
    """
    start = 0
    while True:
        start = a_str.find(sub, start)
        if start == -1:
            return
        yield start
        start += len(sub)
