A list comprehension or a generator would be a better choice for this than nested maps.