OK, it looks like you have three separate (albeit similar) errors there.
https://i.postimg.cc/50VT26JV/2.png
In this one, you appear to have copied instapy into your account the directory that contains your code. You should install it using one of the different pip
commands, instead. There's more about installing new modules on this help page.
https://i.postimg.cc/wvQPygxs/3.png
In this one you are already running Python, and then you are trying to run the Bash command that starts Python inside it.
https://postimg.cc/r0bgkh15
In this one, you have started a Bash console, and you are trying to run a Python 3 script using Python 2. You should use the "python3.7" command to run the script instead of the "python" one.