Use six.string_types instead of basestring.
Merge pull request #2439 from alefnula/remove-basestring

Use six.string_types instead of basestring.