How to create a set with a dictionary in, in Python?