strip bots code from session.py