You could make this entire block on this form:

``` python
data = {
    'uri': uri,
    ...
}
```