The python i3 ipc API has changed apparently.
See also
https://faq.i3wm.org/question/3757/swapping-workspaces-script-does-not-work/
for a different fix.
# ..and move it to the other output.
# outputs wrap, so the right of the right is left ;)
-i3.move__workspace__to__output__right()
+i3.command('move', 'workspace to output right')
# rinse and repeat
i3.workspace(outputs[1]['current_workspace'])
-i3.move__workspace__to__output__right()</tt></pre>
+i3.command('move', 'workspace to output right')</tt></pre>
<p>
A very simple way to use this script is as follows: Put the script in a file,