Ported over missed session function calls.
Ported over missed session function calls. Style fixes.
Ported over missed session function calls. Style fixes.
Ported over missed session function calls. Style fixes.
PEP8 style fixes.