Python javascript error ipython is not defined.