Use string_types instead of str in isinstance.
flake
Merge pull request #512 from almarklein/string_types

Use string_types instead of str in isinstance.