Fix doctests.

nipypeminc.py relied on functions that I had incorporated into my own
branch of nipype. Brought these in and tweaked the imports so that they
all work again.