Trying to tag a category in every view of the project

Sheet Getter .dyf (2.6 KB)
Tag Creator .dyf (7.0 KB)
automated tag.dyn (12.8 KB)
This is my first time attempting python and I have gotten it to run but it just ends in a null and no content is placed. If anyone has any insight on what I am doing wrong, or a better way that would be great. I included the two pythons that I am attempting to use and the whole file that I am working from,