public final class PythonTrigger extends ScriptTrigger {
protected Object execute(int type, Key key, Object oldObj, Object newObj) throws DBException {
PythonInterpreter pi = new PythonInterpreter();
// Standard Imports
pi.exec("from com.dbxml.db.core import Database");
pi.exec("from com.dbxml.db.core import Collection");
pi.exec("from com.dbxml.db.core import Container");
pi.exec("from com.dbxml.db.core.data import Record");
pi.exec("from com.dbxml.db.common.scripting import *");
pi.exec("from org.w3c.dom import *");