Or, actually. A plain dict would probably be simpler and easy to read

the_proxy['proxy_username'] = info['proxy_username']
...
the_proxy['proxy_port'] = info.get('proxy_port') or None
```