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 to all Python versions.

closes #3156
Merge pull request #3157 from minrk/pretty-sets

use Python 3-style for pretty-printed sets