def exclude_tables(tables, relationships, exclude):
    """ This function excludes the tables and relationships with tables which are
    in the exclude (lst of strings that represent tables names) """
    exclude = exclude or []
    tables_filtered = [t for t in tables if t.name not in exclude]
    relationships_filtered = [r for r in relationships
                              if r.right_col not in exclude and r.left_col not in exclude]
    return tables_filtered, relationships_filtered