Hi Charly,
You need the SessionState gist. I.e. put the file SessionState.py from here in your project.
There are are different versions of the SessionState gist out there, but it looks like this one is recent. See e.g. this thread for some additional inspiration.
Best regards,
Peter