python if true for all in list