fixed bug where everything was being used as a tag name

problem was with the list comprehension right associating. just needed
some parenthesis