That honestly looks more like a failure on the part of the Python library maintainer to create a pleasant way to create record prototypes.
I mean, all you're doing in your list example is creating dictionary and list examples of the mapping you want. There is literally nothing stopping you from doing that in Python.