my Boyer-Moore algorithm realization with Python