Лучше сделать так
```python
for key, val in months.items():
    for month in val:
    print key
    return
print "can't find month"
```