Running two scripts that have access to a shared memory location

I'd like to run several scripts that interact with eachother via some shared memory,
e.g. use an external singleton class. What's the simplest way to achive that?