adding ClassContextManager

added a nested class context manager that knows how to access the parent class instance it was called from so the nested classs can be used as a context manager function of an existing class instance

Signed-off-by: Kyle Rockman <kyle.rockman@mac.com>