Changed {foo} constructor to explict set(foo) for compatibility with python 2.6.