avoid dict comprehensions; do not work in py2.6