experiment automation with python, karp-rabin bugfix