The python interpreter running on the client is different and independent from the one on the server.
The client starts its own interpreter and a Globals module can be used to share variables across forms. That Globals will be alive as long a the app is alive in that browser’s tab.
The server knows nothing about that. The server starts its own interpreter and imports its own Globals. Then, unless your plan allows it and you enable persistent server, the server starts a new interpreter every time there is a server call or an http endpoint call, and creates a new Globals at every call.