python if and not statement