def __setitem__(self, item, value):
        if isinstance(item,basestring):
            self.add_attribute(item, value)
        elif isinstance(item, slice):
            # set multiple attributes at once
            for k, v in value.items():
                self.add_attribute(k, v)
Checks if a value is given as a boolean value (either 0 or 1 or "true" or "false")
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/gluon/contrib/pysimplesoap/simplexml.py/SimpleXMLElement.__setitem__--crossover with--dataset/ETHPy150Open tpircher/pycrc/crc_opt.py/_check_bool