Hi Charly,
You need the SessionState gist. I.e. put the file SessionState.py from here 253 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 113 for some additional inspiration.
Best regards,
Peter