python test improved

Python test loads shared library and test directly its output.