Fix IPython 1.1 compatibility
Merge pull request #5 from tonysyu/fix/ipython-1.1-compatibility

Fix IPython 1.1 compatibility