Handle session management loop in another process.
PEP8 and syntax, yo.