Not sure what you mean here, `country_list` is a list, we have a dict in the generated file.
But perhaps `repr(dict(country_list))` would work, apart the fact it will return one string without newlines, which is not as good when it comes to versionning (it will be easier to spot changes in commit diff after re-generation if we have newlines to separate items).