I think that this should be a set comprehension.  (1) it should be a comprehension so it takes up 1 line not 4, and (2) it should return a set, not a list, because keys of dictionary are unordered.