use a global session instance in replication
Summary
The session main reference is actually stored into an ugly global in operator.py
Improvements
Moving the session to a module wide instance in replication could help to access it from other location and to make things much clearer.
Risks
It will be harder to manage replication unit tests
Edited by Swann Martinez