Wonderful, was considering writing this just the other day. Thank you good sir.
One thing that would be really nice, is a record mode and serialization (to JSON/yaml/etc...) plus a context manager (python's with). How ready are you for pull requests? ;-)