'Returns a list of table names given a path'

def get_table_names_by_path(self, path):

    table_names = set()
    for (name, data_table) in self.data_tables.items():
        if (path in data_table.filenames):
            table_names.add(name)
    return list(table_names)
