Build the Python module before installing for Debian.
Update compat to a non-deprecated version
Update Debian dependencies.
Install the Python files the old way to make it work with Debian packaging
Update Python file paths
Make Python binding work with Python3.
Modernize setup.py slightly.
Use relative imports according to PEP 328