Python3: Initial work towards building Python 3 bindings

Modified Makefile to allow building with "PYTHON_VERSION=3" and
fixed bindings generation script to work with Python 3.

Python 3 library builds and imports but string handling is wrong.
Python3: Fix string handling in Python bindings