A python trie implementation