Unbreak 'undo_multiple' under Py3k.

Fixes #181.