title: print to cout from embedded python
body: <p>I am using python's <a href="http://docs.python.org/c-api/veryhigh.html" rel="nofollow">very high level layer</a> to embed some python code to a commercial application that supports a proprietary scripting language.
  The problem is that the application itself is coded in C++ and it has a embedded log window which displays cout and cerr. I was wondering if there is a way to print to cout/cerr from python... I already goggled a lot about it, but I cannot find a simple way to do it.</p>
  
  <p>Thanks!</p>