Remove some unused imports including the __future__ import for nested_scopes as Thuban relies on Python 2.2 now. (XMLWriter.encode): Remove the special case for a None argument. In the saver encode is always called with a string argument.