Rabin Karp Algorithm Python Example