If you want to execute shell commands in a Python script, use os.system("your command"). The code above shows an example of os.system.
os.system("your command")
os.system