def set_property(self, key, value):
        node = self.find(key % 'property[@key="%s"]')

        if node.xml is None:
            node = etree.Element('property')
            self.xml.insert(0, node)
            node.attrib['key'] = key

        node.attrib['value'] = value
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/app_manager/remote_app.py/ProfileXML.set_property/swapped operands of `%`