python check if integer equals