Moving the python call itself into a dedicated sub-scope allows to ensure local variables (arguments) do not risk leaking into the rest of the code after being released. Also use helper macro `PyTuple_SET_ITEMS`. Pull Request: https://projects.blender.org/blender/blender/pulls/144798