def hideCells(notebook):
    """
    Finds the tag 'hide' in each cell and removes it

    Returns dict without 'hide' tagged cells
    """
    clean = []
    for cell in notebook['cells']:
        try:
            if 'hide' in cell['metadata']['tags']:
                pass
            else:
                clean.append(cell)
        except KeyError:
            clean.append(cell)

    notebook['cells'] = clean

    return notebook