Please, lose the dict comprehension, since that prevents the code from running on pre-2.7 python