A better way to run shell commands in Python.