title: Pass C++ object contained in a smart pointer to Python
body: <p>I have a class in C++.<br>
  I create an object from this class in my C++ code. I want this object to be accessible in Python.  I use <code>boost::shared_ptr</code> to keep the object address.</p>
  
  <p>I've checked out some posts about this but wasn't very helpful.
  I think the best way is to make an object in Python namespace after interpreter initialization and then assign my boost shared_ptr to the created object in Python.</p>
  
  <p>I've wrapped my class using <code>BOOST_PYTHON_MODULE</code> in cpp and tested some ways like <code>namespace["my_module_name_in_python"] = class&lt;"my_class"&gt;...</code> to be able to create an object in python and fill it with the <code>shared_ptr</code>.</p>
  
  <p>In summery my question is how's possible to pass a C++ object contained in a <code>shared_ptr</code> to python.</p>
  
  <p>Thanks in advance</p>