No need to call `.keys` on a dict before making a set out of it.

A dict is an iterator on its keys, so `set(somedict)` works as expected, without the need to construct an extra list object.