You’re not doing anything wrong. Certain operations are restricted in safe_exec, one of them is unpacking values.
Alternate:
- Get two values one at a time
- Use returned list to index into and set two of them separately.
We can possibly allow this operation, but requires a security review.
https://restrictedpython.readthedocs.io/en/latest/usage/policy.html#guards