ext/sphinxext: fix py3k compat