also note that elements of a set and keys of dictionary must be hashable.  In Python, you can't use a list as a key and you can't have a set of lists.