Fixes the bug I introduced in my previous commit (six.string_types is (basestring,) on Python 2). Thanks @abadger for noticing!