import difflib


def make_diff(base_cfg_commands, check_cfg_commands):
    """
    Generate difference with difflib. Unified diff adds context to diff.
    base_cfg_commands - list of commands from base config,
    check_cfg_commands - list of commands from config to check.
    Returns result as a generator.
    """
    return difflib.unified_diff(base_cfg_commands, check_cfg_commands, n=30)