object.id is sometimes set and sometimes not. Move it to object._id and make some getter method that will dig into the data to find the uid if self._id is not set.
object.id is sometimes set and sometimes not.
Move it to object._id and make some getter method that will dig into the data to find the uid if self._id is not set.