DOC: fix doc/source/conf.py to work with Python 3