It'd be better if it was
```
publish_all_ports=False
```
because you can then just do
```
start_config['PublishAllPorts'] = publish_all_ports
```
without the if clause.