I have 2 python scripts sc-1.py and sc-2.py and shell file test.sh
sc-1.py
import time
print('Script 1 started')
time.sleep(2)
print('Script 1 ended')
sc-2.py
import subprocess
print('Script 2 started')
subprocess.Popen(["sh", "test.sh"], shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
print('Script 2 ended')
test.sh
py sc-1.py
It works but there is one problem. The command terminal doesn't end after the script is ended.

I have to use ctrl + c to end it.
