Now I want to wrap it around a script, that is also able to receive arbitrary data. In its sequence section in the UI, I would like to add something like this:
You can’t search the current namespace for available attributes. Your only option is to expect a dictionary as a passthrough.
Why are you using the python_script.set_state? It really serves no purpose and 9 times out of 10, you can implement what that delivers without needing it.