>>>> __builtins__ = {} >>>> import subprocess > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: __import__ not found Try running this as script. It works!