Sketch python wrapping of trimmer (untested)