python inline if else statement