python check if any element in list is true