callbacks needs to be adapted so that their arguments match the arguments construction of PythonScript see adapt_arguments in pythonpythonjs.py