84f6686
Construct the command line in a separate function Use a separate function to construct the string passed to os.system to reduce duplication.