Update session.py

Rethreaded system with less bloat