BLD/DOC: fix conf.py on PY3
BLD/DOC: fix ipython_directive to workaround ipython/4504
Merge pull request #6250 from y-p/PR_ipython_directive

fix ipython directive, py3 and recent ipython changes