This line looks is a bit cryptic.

I think a list comprehension (instead of map) or a separate function with tuple unpacking (instead of lambda) would make it more clear.