Close Terminal After Script Completes / Command Exits
To close Terminal after a script completes you will need to change it in the profile preference.
Right-click in the window and select Profile > Profile Preferences.
Open the Title and Command tab.
For "When command exists:" select "Exit the terminal".
myscript.py required user input. So I added a Keyboard Shortcut with the "Command" of:
The shortcut opens a terminal window for the input. The scripts then runs and the Terminal window closes after the script completes.