Hey i run into a problem which is how python can capture the output like this command 

```
os.system("apt install apt-transport-https") 

```

and then if its allready installed to skip it so it dont make a new install ?