Tag Selected: how to use strings in python