use a Sphinx ref instead of raw url

Other than reducing ugliness, when building the doc with Python 3,
the target is a Python 3 version of the class; same applies to Python 2.