Add Python 3 support.

Python 2.X is still the default, during configure you can override the version with ```PYTHON=python3 ./configure```

Sorry if I commited a few unrelated things.. i was in the area :P