I would also validate that `api_urls` is an iterable (`isinstance(api_urls, (list, tuple)` should work fine)