docs: def set_tags(self, tags):
          """Sets this object's tags to only those tags.
          * tags: a sequence of tag names or Tag objects.
          """
  
          c_old_tags = []
          old_tags = []
          c_new_tags = []
          new_tags = []
  
          to_remove = []
          to_add = []
  
          tags_on_server = self.get_tags()
  
          for tag in tags_on_server:
              c_old_tags.append(tag.get_name().lower())
              old_tags.append(tag.get_name())
  
          for tag in tags:
              c_new_tags.append(tag.lower())
              new_tags.append(tag)
  
          for i in range(0, len(old_tags)):
              if not c_old_tags[i] in c_new_tags:
                  to_remove.append(old_tags[i])
  
          for i in range(0, len(new_tags)):
              if not c_new_tags[i] in c_old_tags:
                  to_add.append(new_tags[i])
  
          self.remove_tags(to_remove)
          self.add_tags(to_add)