Thank you all! Okay, the concept of a WSGI along with a framework provides insight on my main questions.
In regards to Chris's statement: "It openly and honestly does NOT reset its state between page requests" With PHP, I have sessions to preserve state. I have a feeling that this is significantly different. Yes? How? Does this somehow relate to how websockets are implemented? -- https://mail.python.org/mailman/listinfo/python-list