updating data model in python