I had this script for replacing the text in a text tab with the glyphs that have been swapped by an active opentype feature. (i.e. replace a with a.ss01 in the text tab if ss01 is active). But now it no longer works:
Traceback (most recent call last):
File "Replace with GSUB Glyphs Already Activated.py", line 24
TextGlyphs = Doc.windowController().activeEditViewController().graphicView().layoutManager().cachedGlyphs()
AttributeError: 'GSLayoutManager' object has no attribute 'cachedGlyphs'