Better replacement for dict comprehensions in python 2.6