This is simple example how use python with boost C++ libary in order to write extension in C++ and then use it in python. This example works under Ubuntu.
In order to use python script with C++ extenson you have build it by command
sh build.sh
then,
cd build
and here you can run example python scrpit with use libNumericIntegration.so
python rect.py