Full python version of ShMem lib.