using multiple if statements in python