python test if integer is even