Deleting one handle creates a zero-length handle

I noticed that the zero-lenght handles are removed at export for that weight and the result is a straight line. And for the interpolated weight Glyphs extracts the handles. This is just perfect. The final OTF will be just fine. Am I wrong? The problem is inside the app, when scaling the glyphs the handles are also extracted in the new generated glyph and I have to reset them to zero again. With a script I think it will be way much easier.

Now, I’m not very proficient in Python… Is there anyone that can help me with a script that can do this? – Set the selected BCPs to zero. Thank you. m

This should be quite easy, a perfect task to get into python ;).