Update target.py

#1848 - Add FLAG to the tag_targets array for upgrade