python if and evaluation order