def __getitem__(self, key): v = self._tables[key] if not isinstance(v, TableMetadata): return v # Parse files, construct table and store it. new_table = DojoTable.from_djson(v.djson_path) new_table.dojo_name = key self._tables[key] = new_table return new_table