```python
from models_constants import Keyword # suggest you organize constants into classes
type_choices = [i[0] for i in Keyword.TYPES] #this is called _list comprehension_ if you need to google more detailes about it.

key_type = random.choice(type_choices)
```