If you were to make it so that tags were keyed on their name, this would be:

new_tag = tag.Tag(id=tag_name)