The problem is that when starting script, my local terminal (/dev/pts/4 or whichever number) runs the script command and I am not able to send the python command. Ultimately, I want to have a couple of commands after the script command to be run and everything to be called up by a shell script file.