isinstance(x, (str, native_str)) everywhere

see #712
travis ping
Merge pull request #714 from mbyt/isinstance

Py3k: isinstance(x, (str, native_str)) everywhere