python if string can be int