If you need to perform some action with python before executing another program
#!/usr/bin/env python3 import os os.execvp("bash", ["-l"])