matrix nio Python library does support E2E encryption; I think that would be a good start for a SFOS client given that python3/QML is well integrated into the OS.