Updated IPython plugin to support Python 3.x