If needed I implemented my own clipping algorithm (3 variants) in the marlin renderer that supports any closed polygon or stroked/dashed path... It works as a stream processor and blazing fast. If needed I could port it to python or C...