Fixes issue #410 , IPython.core.ipapi deprecated

Fixes ipy_completer to avoid use of a deprecated ipython module. Tested with ipython-1.1. I'm sorry I have not had time to test with older versions of ipython, but I don't anticipate problems.