As well as the shared ctypes approach to sharing memory, you can also do the job at a much lower level in terms of bytes. This is slightly faster and slightly simpler if you are already working with ...