use `string_types` in six package when checking if return from get_dependent_urls is a string