def METHOD_NAME(urls_list):
    """Take a list of dicts which may itself contain some lists of dicts, and
    return a generator that will return just the dicts in sequence.
    Example:
    list(flatten([{'dude': 'jeff'}, [{'walter': 'walter'}, {'donny': 'dead'}]]))
    > [{'dude': 'jeff'}, {'walter': 'walter'}, {'donny': 'dead'}]
    """
    for url in urls_list:
        if isinstance(url, dict):
            yield url
        else:
            yield from url