Silence deprecation warning in session.py

Avoid popup error box from py2exe