a pure python Aho-corasick algorithm implementation