Remove references to `basestring`, replace with `string_types`.

Makes Python3 happy.