Tested tag_temp.py. Fixed bugs. Looks good.