A python interface that can run arbitrary commands