Add Session functions, necessary to implement new features in Python 3.6. (#4205)

1 file changed