Make doxygen work with both Python 2.7 and 3.x

Apparently doxyqml doesn't work with Python 3.x right now. Luckily the required changes seem to be minimal.