[S] Change in pysim[master]: WIP: fix problem with global variables