accomodate both Python 2 and 3

Those building using Python 2 will get references pointing to Python 2 docs. Same applies to Python 3.