autoflush is set to False at line 25. Isn't it better practice to merge parameters, not to set all at time? It will prevent accasional missing of parameters. Smth like that:

```
    session_params = session_params or {}
    session_params.setdefault('autoflush', False)
```