The PYACTION keyword is implemented with a Python module with a run() function in an external module.