I\'ve been writing a small Python script that executes some shell commands using the subprocess module and a helper function:
subprocess
import subprocess
I would suggest option 3, with the logging standard library package. In this case I'd say the other 2 were overkill.