Portably uniquify results from rpc_get_completions.

Dictionary comprehensions do not work in Python 2.6. And in Python 3,
dict.values returns a view, not a list. Work around both.