It works in Python 2. The shared library is probably built in a version specific way. cmake settings need changing so it compiles against python 3.