python if a and b is not none