fixed session.py
Vague start on seesion-handling code