Fixes ipython completer, closes #321

IPython recently changed their API, breaking h5py's ipython completer extension. This pull request fixes the extension for the new API while preserving backward compatibility.