replacing set literal {} with set() for python 2.6 compatibility (plus reformatting the line)
pylint compliancy
avoid dict comprehension for python 2.6 compatibility