Python 2.6 compatibility.

Python 2.6 does not support {} short cut for set creation. It also does not come with `importlib`.