Switched order of import tests

io.StringIO is also available in Python 2.7, but defaults to manipulating
unicode strings, where Python 2.7 uses byte string everywhere else.  You
can see how this can become a problem.