Python 2.6 backporting

Changes set comprehension & literals to set(..) and unittest import to unittest2 for < 2.7 versions of python.