Revert "Fix publish.py IPython import Error and make Python3 ready"

This reverts commit 5bcd78c5191d5b74d09e7a87021eb4fcaed9b929.