port dictionary comprehension to Python <= 2.6