To paul jobs:
Of course not, you just and only can initialize in the code.py, code.py is where the main application is, and then use this instance in each subapplication, if you get different session in each application, you cann't share the information you stored in it., and where you shared is actually the session ID, not the variable you stored in the session scope.