Update session.py to resolve issue #60