How to know if an element exists within a tuple in python?