update PYObject, the objectId, name, type can be nil when conver to dictionary