touched up session.py