Add support for Python3

Actually this also needs to update Sphinx to the current stable branch (support of Python3 for InheritanceGraph was added just after 1.1.3 was released) but assuming you have that installed then this works (and is still compatible with 2.6+).