This seems like it might be reinventing [`inspect.getcallargs()`](http://docs.python.org/2/library/inspect.html#inspect.getcallargs), at least partially?