I think the preferred way to convert this is
```python
list(self.colors.keys())
```