a quick workaround for python truncate_to_string fix #1070, fix #1070

[ci skip]
This tag has no release notes.