IPython 1 update

Update the misc.py file to support only IPython 1 and higher.