New in version 2.4.
Thesubprocess module allows you to spawn new processes,connect to their input/output/error pipes, and obtain their returncodes. This module intends to replace several other, older modulesand functions, such as:
os.systemos.spawn*os.popen*popen2.*commands.*
Information about how thesubprocess module can be used toreplace these modules and functions can be found in the followingsections.