Converts the opinion layer to KAF

def to_kaf(self):
        """
        Converts the opinion layer to KAF
        """
        if self.type == 'NAF':
            for node in self.__get_opinion_nodes():
                node.set('oid',node.get('id'))
                del node.attrib['id']