Replaces map(lambda k: …) with way faster list comprehensions.

According to timeit, it's 4 times faster for small lists (3 items)
and 20 % faster for huge lists (15000 items).