Generified PythonTask