adding context manager support
Merge pull request #1 from JasonAUnrein/context

adding context manager support