def copy(a):
shared = anonymousmemmap(a.shape, dtype=a.dtype)<EOL>shared[:] = a[:]<EOL>return shared<EOL>
Copy an array to the shared memory. 

        Notes
        -----
        copy is not always necessary because the private memory is always copy-on-write.

        Use :code:`a = copy(a)` to immediately dereference the old 'a' on private memory