Maybe you could build a dictionary directly, instead of building a list of tuples and turning it into a `dict` in the end,