how to check if a number is in a list python