I don't see why you couldn't just build the dictionary in one go.

```python
metadata = {
    'title': tags['title'][0],
    ....
}
```