def tag_only(tag):
    """
    simple function to remove the elements token from a tag name

    e.g. tag_only('tag_name{10}') -> 'tag_name'
    """
    if '{' in tag:
        return tag[:tag.find('{')]
    else:
        return tag