Similar deal here?

```python
username, password = (None, None)
proxy = new_proxies.get(scheme)

if proxy:
    username, password = get_auth_from_url(proxy)

if username and password:
    headers['Proxy-Authorization'] = _basic_auth_str(username, password)

return new_proxies
```