Fix some syntax errors in tag_temp.py