fix for IPython dependency checking in setup.py

I need this to be able to pull in other PRs.