In Python, how to use the in operator in an if statement?