example of how to create a shared library implemented in Python