Made InheritanceGraph cross-version compatible.

All mainline tests and doctests now pass under Python 2.7 and Python 3.4.

Remaining work includes improvements to our documentation system, and
compatibility fixes for the experimental package.