Calling external commands using the subprocess module