Convert python response to dict?

When calling the python API, it looks like a python object is returned that wraps the json contents of the API response, however this object can’t be turned into a python dict and isn’t compatible with Flask jsonify().

Is there a way to get a vanilla python dict from the the Pinecone Python API?

oh, it has a function to_dict()