A python package that implements generalized prefix tree or trie