Instead of manually mapping all the objects, we can try utilized pythonize crate which allows us to parse rust structs from python objects.