[lang-ref] ( trim_last ) ( python )