I was following this tutorial from boost.python to create a shared library. Here\'s a simple code defining the methods that I want to expose to python.
boost.python