Rather put parens around the condition (with an extra indent on the next line) and avoid backslash line continuation:
```python
        if (msg.get_routing_endpoint() == 'default'
                and config.include_url_in_sms):
```