def __call__(self, **kwargs):
        '''
        Add a new element with our name to our parent element.  Any keyword
        arguments are set as attributes on the new element.  This actually
        adds new elements as far up the parent chain as needed, so you don't
        need to create every parent explicitly.
        '''
        e = new_element = EasyXML(self._name)
        e._parent = self._parent
        e._attributes = kwargs
        while e._parent and e._parent._element_map.values() not in e:
            e._parent._elements.append(e)
            e._parent._element_map[e._name] = e
            e = e._parent
        return new_element
dataset/ETHPy150Open evanw/easyxml/easyxml.py/EasyXML.__call__/swapped operands of `not in`