FWIW, IDLE prints exception messages as received from the interpreter. Hence,
NameError: name 'imt' is not defined. Did you mean: 'int'?.
When a method exists for another, related, Python class, I think it better to suggest the other class rather than assume a foreign language match. Hence list.add => (something like) “Did you mean to use a set?”.