python check if string is negative integer