python check if true for all in list