title: Python : how to pass a class object in subprocess.Popen
body: <p>code :
  B.py - <code>B</code> (executable)</p>
  
  <pre><code>Get the object here and call it's functions
  </code></pre>
  
  <p>A.py - <code>A</code> (executable)</p>
  
  <pre><code>from subprocess import Popen
  
  class x():
  
      def __init__():
          pass
      def A1():
          ------
      def A2():
          ------
      &lt;----------&gt;
  
      def AN():
         -------
  
  object_x = x()
  Popen(['B','-class_args', 'x'])
  </code></pre>
  
  <p>I have two python executables. I have a class defined in the first executable. I have created an object from that. I want to pass that object to the second executable using <code>Popen</code>. As in <code>Popen</code> I can only pass strings, Is it possible to pass an object??</p>