

def __init__(self, **kwargs):
    self.name = self.__class__.__name__
    self.body = None
    self.nestables = ()
    self.elements = []
    self.attrs = {
        
    }
    for (k, v) in kwargs.items():
        if (k == 'sender'):
            k = 'from'
        self._is_valid_attribute(k)
        v = Element.bool2txt(v)
        if (v is not None):
            self.attrs[k] = unicode(v)

dataset/ETHPy150Open plivo/plivohelper-python/plivohelper.py Element.__init__/original