updated task.py and tag.py