It is best to designate one specific process as owning and dedicated to this instance; any other process that requires access to this instance receives it by sending messages to the ownership process through the queue (as provided by the multiprocessing module) or other IPC mechanisms for sending messages, and receives responses through similar mechanisms.
source share