Tag Selected: print function in python