Fix dictionary creation not supported in python 2.6