listcomp -> for-loop (listcopms create a new scope in py3), bypass AttributeError on Pandas.str
Merge pull request #5530 from kermit666/sphinxext-py3

sphinxext py3 compatibility