need to compare to `string_types` for python 3 compat
```
    from six import string_types
```
if it is not already at the top of the file