Minor modification: the problem is now identified. The z3_wrap._getModel should handle the dictionaries in the model.