python check if integer is negative