Use set comprehensions when appropriate.

More idiomatic / cleaner. These were introduced in Python 2.7, which we
require:
http://docs.python.org/dev/whatsnew/2.7.html\#other-language-changes