ternary if operator in python