'Returns a list of all tables relevant for a bind.'

def get_tables_for_bind(self, bind=None):

    result = []
    tables = Model.metadata.tables
    for key in tables:
        if (tables[key].info.get('bind_key') == bind):
            result.append(tables[key])
    return result
