python check if string is positive or negative integer