python if integer comparison