inter-operation between python and shell by using ipython script