To execute system commands within Python, we need to import the module subprocess first. The high-level tool provided by this module is run. With this tool, you quickly access Linux commands within Python and can process their output.
The more sophisticated tool is Popen, which we will shortly present when explaining how to mimic Linux pipes in Python.