python check if integer is odd or even