BUG: Use string_types instead of basestring for py3 compat.