Enable/disable classes, features and prefixes via scripting

Hi, how can I enable/disable classes, features and prefixes via scripting?
I’ve been looking through the API documentation and playing around and didn’t manage to find the way.
Thanks!

Yes, via the PyObjC bridge. You can query with:

print Font.features[2].disabled()

And set it with:

Font.features[2].setDisabled_(1)

I added an feature.active property.

thanks!