python determine if integer is odd or even