I think, that was a mistake and this will be the right way:
```python
    session_params = dict(session_params or {})
    session_params.setdefault('autoflush', False)
```