python check if any element in list is not none