You can make semi-generic callbacks by creating jython classes that implement the __callable__ special method, and supply an instance as the callback. Have the __init__ method save the state you need to carry your logic forward.
2 Likes