You could create this by dict comprehension.