Prefix calls to active_sessions with "self." so that active_sessions...

never treated like a local variable.