python if string is valid int