mkbundle: another StringIO fix, python3 conversion, fixes #2469