Modify outside of transaction ERROR

Yeah that was the issue I had when solving the move scope box issue. Try using the Python code here: