python check if any item in list is not none