Why is this set to 0?  I would have thought it would be len(self.task_xml) ?