Relevant:
https://discuss.python.org/t/extending-subinterpreters-with-...
https://stackoverflow.com/questions/3068139
https://wiki.python.org/moin/SandboxedPython
https://github.com/jailctf/pyjailbreaker
https://healeycodes.com/running-untrusted-python-code
https://lwn.net/Articles/574215/