The variable name `url` is not ideal here. Maybe something like `baseurl` instead.

Also, I'd prefer this parameter to be optional, with something like

```python
def get_url(x, y, z, url=None):
    if url is None:
        url = DEFAULT_BASEURL
    ...
```