Clear, concise list (and dict) comprehensions like this are one of my favourite parts of using #Python.
Once you know how to read it, this is an obvious way to avoid userspace iteration for an otherwise-trivial reformat needed to appease an external API.