Problem - gnome terminal shell scripting

I've a python script named rwe.py. I'm running the program in three separate terminals. If one of the executing program stops . I want to leave the terminal as it is so that i can see the error. i wrote a the below script and used cron to run it every one hour to check if the three programs are running. if not open a new terminal and run the program.
My problem here is that In the script below the terminal window where the new rwe.py runs and if an error occurs the newly open terminal window closes and i'm not able to see the error. I want the newly created terminal window to stay as it is so that i can come back and see the error.

count=`ps -ef | grep rwe.py | grep -v grep | wc -l`
echo $pid
if test $count -lt 3
then
gnome-terminal -e "./rwe.py"
echo "hi"
fi

Please help!!!!