'Add/Delete tags'

def _set_tags(self):

    if (self.tags is None):
        return
    params = {'LoadBalancerNames.member.1': self.name}
    tagdict = dict()
    if self.elb:
        current_tags = self.elb_conn.get_list('DescribeTags', params, [('member', Tag)])
        tagdict = dict(((tag.Key, tag.Value) for tag in current_tags if hasattr(tag, 'Key')))
    dictact = dict((set(self.tags.items()) - set(tagdict.items())))
    if dictact:
        for (i, key) in enumerate(dictact):
            params[('Tags.member.%d.Key' % (i + 1))] = key
            params[('Tags.member.%d.Value' % (i + 1))] = dictact[key]
        self.elb_conn.make_request('AddTags', params)
        self.changed = True
    dictact = dict((set(tagdict.items()) - set(self.tags.items())))
    if dictact:
        for (i, key) in enumerate(dictact):
            params[('Tags.member.%d.Key' % (i + 1))] = key
        self.elb_conn.make_request('RemoveTags', params)
        self.changed = True
