Hallo friends of Python!

I'm working on a Java project that allows to execute (untrusted) Python user code. I've prevented the availablity of specific Java classes/methods via a custom classloader. But I saw that Jython also provides some native built-in functions that are no Java code: http://www.jython.org/docs/library/functions.html

It would be useful if there's a possibility to detect the execution of specific built-in functions in order to throw an exception if necessary. Otherwise, I'm faced with a security issue if the user is able to read/write to file system or to create network connections.

Would you provide any hooking mechanism during parsing or code execution, please?