sphinxext py3 compatibility

Temporary sphinxext py3 compatibility before # is resolved. So far test_docscrape.py passes on both Python 2.7 and 3.3 (which should be the typical developer interpreters).