title: how to suppress error coming when importing a file In python
body: <p>I have a program which imports a file X and look something like this..</p>
  
  <pre><code>...
  ...
  importing rest of the stuff
  ...
  print "Debug A"
  from CA import &amp;
  print "Debug A"
  ...
  </code></pre>
  
  <p>This gives the output of the program as</p>
  
  <pre><code>Debug A
  2015-02-24 15:40:03.374 Python[1778:108266] PyObjCPointer created: at 0x10e565160 of type @
  Debug B
  </code></pre>
  
  <p>I have tried using</p>
  
  <pre><code>a) warnings.filterwarnings("ignore")
  b) 
  err(or stdout, tried this too) = sys.stderr
  from CA import &amp;
  sys.stderr = err
  </code></pre>
  
  <p>But i just am not being able to get rid of this message. Any suggestions please? 
  Also when i run this file by  <code>python abc &gt; somefile</code></p>
  
  <p>it still shows up but <code>python abc 2&gt; somefile</code>, takes it away, so seems like its an stderr.</p>