why the call to ``.keys()``? that is a list lookup vs a set lookup. also, placement of ``not`` is non-standard. suggest:

```python
if num_colors not in raw_map:
    # do stuff
```