Your best bet is to install a terminal emulator on your iPhone. If it can run Python 3.5 or higher you're good to go.
https://alternativeto.net/software/termux/?platform=iphone
The Firefox extension is Linux-only, but could be easily ported to the Mac desktop, and with more difficulty, to Windows. Android and iPhone require all Firefox extensions to be self-contained programs coded entirely in Javascript. Mine's written in Python because that's what most part-of-speech taggers use.
饜憳饜懆, 饜憺饜懆饜憫'饜憰 饜憿饜懎饜憫 饜懐饜懖饜懐 饜懄饜憻 饜憵饜懕饜憰饜憫 饜應饜懐. 饜懖 饜憵饜懕饜憰饜懄饜憭饜懁饜懓 饜懁饜懓饜懠饜懕饜懐饜憽饜憶 饜懄饜憫 饜憫 饜懃饜懄饜懃饜懄饜憭 饜憺饜懄饜憰 饜懁饜懅饜憽饜懄饜憫 路饜憱饜懕饜憹饜懢饜懐 饜憭饜懓饜憵饜懟饜憶. 饜懀饜懡'饜憻 饜懃饜懖 饜憭饜應饜憪饜懓.