We made a python module to run complicated non-python code in python (like stuff that needs ridiculous environmental gymnastics). It's called sidomo (Simple Docker Module) and it's used to easily make python modules that are actually docker containers (well, docker images). These containers take an input, then hit it with the contained code, and send the output back to pure python.
The hello world:
from sidomo import Container
with Container('ubuntu') as c:
for line in c.run('echo hello from the;echo other side;'):
print(line)