python if true and not true