It might be. CPython doesn't support sandboxing Python code, so the only option is to run the whole interpreter within a sandbox.