Sorry for the delay, I was in vacation and got disconnected last weeks.
I read the code. The missing part is that the objects list is populated in the tclient.updateobject. You should add code in this procedure to create or update the object.
Later we should to generalize the code in this procedure, because it's very redundant.