Python 2.6 compatibility, replaced set and dict comprehensions