python check if string can be int