yeah  this really should not be an  incomplete  dict here anyway  just doing this would be much better instance objects instance note that the existing code uses a string  id  for the instance  which is not valid  and  name  is not actually a mutable property  which it should not matter for this to just remove it from the list of properties you set on the instance  