Return error value of pytest and fix location of wrapper.so to make the relative imports in python work.