Changes in Python C API for Python 3.
The previous changes did now work (although they compiled). This new fix works with pytest/erstest.py in both Python 2 and Python 3 (although 'import ipc' has to be commented out when only tdaq-common is setup).