use Python 3-style for pretty-printed sets

Sets are now `{1,2,3}` instead of `set([1,2,3])`, matching repr(set) on Python 3.

This change applies Python 3-style to all Python versions.

closes #3156