avoid dict comprehension for py 2.6 support