Fixed dict creation that didn't work in python 2.6.6