python tool: trailing / removal was only partly effective