Ran pyflakes on teiler.py
Ran pyflakes on session.py.  Made recommended changes.