python check if any value in list is not none