Python binding of c++ function through static library