def make_sure_tables_exist(table_classes: list):
    """Makes sure tables exist before continuing.

    If they don't runs parser to create them. This is just in
    case certain tables are not filled already like ASes and
    AS_Connectivity need peers and customers
    """
    try:
        for Table_Class in table_classes:
            with Table_Class() as _db:
                assert _db.get_count() > 0
    except AssertionError:
        from ..relationships_parser import Relationships_Parser
        Relationships_Parser().run()
