Horspool's algorithm in Python & Go