from fontPens.thresholdPen import thresholdGlyph d = 10 thresholdGlyph(CurrentGlyph(), d)