def has_key(k, trie):
 return (_retrive_branch(k, trie) is not None)

def has_key ( k , trie ) : return ( _retrive_branch ( k , trie ) is not None )
for cross compatibility between python 2 and python 3 dictionaries .