Use 2.6 compatible test script
Fix StringIO for real.

Use the io module. Make sure that args are always in unicode.