'Appends attribute data.'

def add_attributes(self, scope, xml_obj, data, default):

    for (k, v) in data.items():
        data_element = self.add_data(make_str(k), self.attr_type(make_str(k), scope, v), make_str(v), scope, default.get(k))
        xml_obj.append(data_element)
