def METHOD_NAME(self, book, name):
    if book.GetPageCount() < 1:
        return 0
    start = 0
    end = book.GetPageCount()
    while start < end:
        if book.GetPageText(start) >= name:
            return start
        start += 1
    return start