run python script with arguments from bash script code example
Example 1: how to run linux command in python
import os
cmd = 'your command here'
os.system(cmd)
Example 2: how to execute bash commands in python script
import subprocess
subprocess.call(["sudo", "apt", "update"])