i think this whole function can be replaced as:
```python
filter(lambda export: export.get('type') == type, self.all_configs)
``` 
or something quite similar to that.