io.StringIO expects unicode writes, while string literal on python2 are bytes. Act accordingly.
Update GPL->LGPL for tools moved from core-admin repository. While at it, change mailing address to www link, as suggested by FSF. Cc: @woju Cc: @rootkovska