This has to be bytes in Py2. There's a test case for `is_type` with an unknown type, maybe changing it to be non-ascii and making an assertion about its `str` would reveal this.

The other things here basically do

```
if PY3:
    __str__ = __unicode__
```

and define `__str__` to return bytes.