title: How to make object or instances global
body: <p>I am looking for a code by using which I can make objects global.
  What I am looking is - suppose there is one file xyz.py which has code</p>
  
  <pre><code>import some_module
  
  class classname:
      def __init__():
          pass
  
      def createobj():
          some_module_obj = some_module()
  </code></pre>
  
  <p>and there are other two files 1.py and 2.py which has code
  <strong>1.py</strong></p>
  
  <pre><code>import xyz
  
  obj =  classname()
  obj.sayhi()
  </code></pre>
  
  <p><strong>2.py</strong></p>
  
  <pre><code>import xyz
  
  obj.sayhi()
  </code></pre>
  
  <p>I want to use the same object in 2.py created once in 1.py</p>
  
  <p>Can anyone help me to know how can i achieve this.</p>
  
  <p>Thanks,
  Vipul </p>