Using the subprocess module would give a better example.