Py module works, but not C++