some fixes for ipython doc building