inline dict to looped dict in python 2.6