python: New state tracker which exposes the pipe driver to python scripts.

Still under development. Just barely works.
11 files changed