code: def to_naf(self):
          
          if self.type == 'KAF':
              ##convert all the properties
              for node in self.node.findall('properties/property'):
                  node.set('id',node.get('pid'))
                  del node.attrib['pid']
docs: Converts the element to KAF